import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
        {
            name: 'index',
            path: '/',
            component: () => import(/* webpackChunkName: "home" */ '../components/page/index.vue')
        },
        {
            name: 'selectModule',
            path: '/selectModule',
            component: () => import('../components/page/selectModule.vue')
        },
        {
            name: 'home',
            path: '/home',
            component: () => import('../components/common/Home.vue')
        },
        {
            name: 'carExperiment',
            path: '/carExperiment',
            component: () => import('../components/common/carExperiment.vue')
        },
        {
            name: 'CarOptimalSolver',
            path: '/CarOptimalSolver',
            component: () => import('../components/common/CarOptimalSolver.vue')
        },
        {
            name: 'metroExperiment',
            path: '/metroExperiment',
            component: () => import('../components/common/metroExperiment.vue')
        },
        {
            name: 'metroExper',
            path: '/metroExper',
            component: () => import('../components/common/metroExper.vue')
        },
        {
            name: 'equiCognition',
            path: '/equiCognition',
            component: () => import('../components/common/equiCogn.vue')
        },
        {
            name: 'test',
            path: '/test',
            component: () => import('../components/common/test.vue')
        }
    ]
});
